diary — Log File


\begin{rail}
Diary : 'diary' '(' Filename')' ;
\end{rail}
The diary function writes a log of whatever happens in the current session after the diary function is called. Both user input and program responses are written to the file specified by the string argument, or to the default diary file ./DIARY, if no argument is supplied. When the file is opened, a string containing the name of the diary file and the date and time are written out to the diary file. Invoking diary a second time with no arguments will close the currently opened diary file. At most one diary file may be in use at any one time.

Subsections